package demo.model;

import static org.lwjgl.opengl.GL11.GL_DEPTH_TEST;
import static org.lwjgl.opengl.GL11.GL_LEQUAL;
import static org.lwjgl.opengl.GL11.glDepthFunc;
import static org.lwjgl.opengl.GL11.glEnable;
import engine.core.OpenGLView;

public class ModelDemo extends OpenGLView {

	public ModelDemo(String title) {
		super(title, 1024, 768);
	}
	
	@Override
	public void init() {
		glEnable(GL_DEPTH_TEST);
		glDepthFunc(GL_LEQUAL);
	}

	public static void main(String[] args) {
		ModelDemo demo = new ModelDemo("Model demo");
		demo.addScene(new ModelScene("model"));
		demo.setCurrentScene("model");
		new Thread(demo).start();
	}
}
